{include(head.tpl)}
<body>
        <form id="frm">
            <table class="table3">
                <tr>
                    <th>标题:</th>
                    <td><input type="text" readonly name="title" value="{list.title}"></td>
                </tr>
                <tr>
                    <th>类型:</th>
                    <td>
                      <select name="type">
                          <option {if $this->vars['list']['type']==1}selected{/if} value="1">普通公告</option>
                          <option {if $this->vars['list']['type']==2}selected{/if} value="2">紧急公告</option>
                      </select>
                    </td>
                </tr>

                <tr>
                    <th>内容:</th>
                    <td><textarea name="content">{list.content}</textarea></td>
                </tr>
                <tr>
                    <th>状态:</th>
                    <td><input type="radio" {if $this->vars['list']['status']==1}checked{/if} name="status" value="1">正常<input type="radio" {if $this->vars['list']['status']==2}checked{/if} name="status" value="2">禁止</td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="hidden" name="id" value="{list.id}">
                        <input type="button" class="h_sub submit" value="提交">
                    </td>
                </tr>
            </table>
        </form>


<script>
  $(function(){
      $('.h_sub').click(function(){
          var arr=_ajaxs.from('#frm');
          _ajaxs.post('{mothedurl}','arr='+arr,function _return(hdata){
              if(hdata.status){
                  layer.msg(hdata.msg,function(){
                      window.parent.return_layer();
                  });
              }else{
                layer.msg(hdata.msg);
              }
          })
      })
  })
</script>
</body>
</html>
